package main

import "fmt"

func main() {
	s1 := 12
	s2 := 12.13
	s3 := true
	s4 := 'a'
	s5 := "hello我草泥马"
	s6 := []rune(s5)
	for i, j := 0, 0; i < len(s6); i++ { //统计字符串中汉字个数
		if len(string(s6[i])) == 3 {
			j++
		}
		if i == len(s6)-1 {
			fmt.Println(j)
		}
	}

	fmt.Printf("%T\n", s1)
	fmt.Printf("%T\n", s2)
	fmt.Printf("%T\n", s3)
	fmt.Printf("%T\n", s4)
	fmt.Printf("%T\n", s5)
}
